package org.cbyyx.tc.model.dto.userRequest;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 用户注册请求
 * @author cbyyx
 */
@Data
public class UserRegisterRequest {

    @NotBlank(message = "账号不能为空")
    @Size(min = 4, max = 20, message = "账号长度必须在4-20个字符之间")
    private String account;

    @NotBlank(message = "密码不能为空")
    @Size(min = 8, max = 20, message = "密码长度必须在8-20个字符之间")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    private String checkPassword;
}
